package com.util;

import org.apache.struts2.ServletActionContext;

import com.domain.User;

//获取域对象的工具类----获取用户对象
public class BOSContext {
	public static User getUser(){
		User user = (User) ServletActionContext.getRequest().getSession().getAttribute("user");
		return user;
	}
}
